﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VK.Comm.TransactSql;

namespace VK.Casemeet.Links
{
    public static class LinkBLL
    {
        public static int GetLinkCount(IList<Condition> conditionArray)
        {
            return LinkDAL.GetLinkCount(conditionArray);
        }

        public static List<LinkEntity> GetLinkList(int startRecordIndex, int endRecordIndex, IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return LinkDAL.GetLinkList(startRecordIndex, endRecordIndex, conditionArray, sortField, sortMode);
        }

        public static List<LinkEntity> GetLinkList(IList<Condition> conditionArray, string sortField, SortMode sortMode)
        {
            return LinkDAL.GetLinkList(conditionArray, sortField, sortMode);
        }

        public static LinkEntity GetLink(int linkID)
        {
            return LinkDAL.GetLink(linkID);
        }

        public static int InsertLink(LinkEntity link)
        {
            return LinkDAL.InsertLink(link);
        }

        public static int UpdateLink(LinkEntity link)
        {
            return LinkDAL.UpdateLink(link);
        }

        public static int DeleteLink(int linkID)
        {
            return LinkDAL.DeleteLink(linkID);
        }
    }
}
